package oop7;
/*
工号
性别
学科
 */
public class Teacher {
    private String id;
    private String gender;
    private String xueke;
    /*
    如果没有写任何构造方法
    系统默认给出 无参数构造方法
     */
    public Teacher(){

    }

   public Teacher(String id,String gender,String xueke){
        this.id=id;
        this.gender=gender;
        this.xueke=xueke;
   }



    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getXueke() {
        return xueke;
    }

    public void setXueke(String xueke) {
        this.xueke = xueke;
    }
}
